<template>
  <view style="height: 100%">
    <scroll-view class="flex-1" scroll-y style="padding-bottom: 120upx">
      <u-parse :html="detail"></u-parse>
    </scroll-view>
    <view class="bottom bg-fff">
      <u-button type="primary" :custom-style="customStyle121"
                open-type="contact"
                shape="circle">在线咨询</u-button>
    </view>
  </view>
</template>

<script>
  import {THEME} from "../../mixins/config";
  import {request} from "../../../util/api";

  export default {
    data() {
      return {
        current_id: '',
        customStyle121: {
          background: '#8FB053',
          padding: '0 30rpx',
          width: '90%'
        },
        detail: ''
      }
    },
    onLoad(option) {
      request({
        url: '/system/wx/CompassCaseStudy/' + option.id,
        token: true
      }).then(res => {
        console.log(res)
        this.detail = res.data.exampleDesc
        /*uni.setNavigationBarTitle({
          title: res.data.exampleName
        });*/
      })
    },
    onShareAppMessage(res) {

    }
  }
</script>

<style scoped>
  .bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20upx 0;
  }
</style>
